﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NasuTek.Shion.Extencibility;
using System.Windows.Forms;

namespace Shion.TestPlugin
{
    public class Plugin : IPlugin
    {
        #region IPlugin Members
        ExtencibilityManager em;
        public void Load(ExtencibilityManager e)
        {
            em = e;
            ToolStripMenuItem test = new ToolStripMenuItem("Get Nicks");
            test.Click += new EventHandler(test_Click);
            e.NickMenu.Items.Add(test);
        }

        void test_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem i in em.NickListView.SelectedItems)
            {
                MessageBox.Show(i.Text);
            }
        }

        #endregion
    }
}
